package org.geektime.task.automybatis.service.impl;


import org.geektime.task.automybatis.dao.IUserDao;
import org.geektime.task.automybatis.dao.impl.UserDao;
import org.geektime.task.automybatis.entity.User;
import org.geektime.task.automybatis.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public List<User> getUserList() {
        return userDao.getUserList();
    }
}
